﻿<%@ Page Language="C#" MasterPageFile="~/MasterTheme/Auto.master" AutoEventWireup="true"
    CodeFile="MyAccountMan.aspx.cs" Inherits="Site_MyAccountMan" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table border="0" cellpadding="0" cellspacing="0" width="80%" align="center">
        <tr>
            <td align="center;" height="45px;">
                
            </td>
        </tr>
                <tr>
            <td align="center;">
               <asp:DetailsView ID="DetailsView1" DefaultMode="Edit" runat="server" Height="50px"
                    Width="80%" DataKeyNames="ID" OnItemUpdating="DetailsView1_ItemUpdating" AutoGenerateRows="False"
                    HorizontalAlign="Center">
                    <Fields>
                        <asp:BoundField DataField="ID" Visible="false" ReadOnly="True" HeaderText="ID" />
                        <asp:BoundField DataField="Name" ControlStyle-ForeColor="red" HeaderText="登录名*" />
                        <asp:BoundField DataField="Title" ControlStyle-ForeColor="red" HeaderText="显示名*" />
                        <asp:TemplateField HeaderText="密码*" ControlStyle-ForeColor="red">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" TextMode="password" runat="server" Text='<%# Bind("Pwd") %>'></asp:TextBox>确认密码<asp:TextBox
                                    ID="TextBox2" TextMode="password" runat="server" Text='<%# Bind("Pwd") %>'></asp:TextBox>
                            </EditItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="Province" HeaderText="单位名称" />
                        <asp:BoundField DataField="addr" HeaderText="地址" />
                        <asp:BoundField DataField="email" HeaderText="邮箱" />
                        <asp:BoundField DataField="telephone" HeaderText="固定电话" />
                        <asp:BoundField DataField="cellphone" HeaderText="移动电话" />
                        <asp:BoundField DataField="descript" HeaderText="描述" />
                        <asp:TemplateField ShowHeader="False">
                            <EditItemTemplate>
                                <div style="text-align: center; vertical-align: middle">
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update"
                                        Text="更新"></asp:LinkButton>
                                    <asp:LinkButton ID="LinkButton2" runat="server" OnClientClick="javascript:{window.close();return false;}">关闭窗口</asp:LinkButton>
                                </div>
                            </EditItemTemplate>
                        </asp:TemplateField>
                    </Fields>
                </asp:DetailsView> 
            </td>
        </tr>
        
    </table>
</asp:Content>
